package com.yy.web.pm.advertisementRemove.controller;

import com.yy.web.pm.advertisementRemove.Dto.RemoveDto;
import com.yy.web.pm.advertisementRemove.service.AdvertisementRemoveService;
import com.yy.web.pm.until.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/advertisementRemove")
@Api(value = "拆除管理")
public class RemoveContrioller {
    @Autowired
    @Qualifier("advertisementRemoveServiceImpl")
    private AdvertisementRemoveService advertisementRemoveService;

    //新增拆除
    @GetMapping("/c")
    public Result add() {
        return Result.success(advertisementRemoveService.selectByPrimaryKey(1));
    }

    //拆除列表
    @ApiOperation(value = "拆除列表")
    @GetMapping("/list")
    public Result list(RemoveDto removeDto) {
        return Result.success(advertisementRemoveService.selectAllList1(removeDto));
    }

}
